///////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2009 Summit Contributors.  
// See: http://code.google.com/p/tyemill/wiki/SummitContributors
//
// The name and logo of Summit are trademarks of TYEMILL, LLC - All Rights 
// Reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a 
// copy of this software and associated documentation files (the "Software"), 
// to deal in the Software without restriction, including without 
// limitation the rights to use, copy, modify, merge, publish, distribute, 
// sublicense, and/or sell copies of the Software, and to permit persons to 
// whom the Software is furnished to do so, subject to the following 
// conditions:
//
// The above copyright notice and this permission notice shall be included 
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
// DEALINGS IN THE SOFTWARE.
///////////////////////////////////////////////////////////////////////////////

package summit.basecamp.constants
{

import org.tyemill.utils.EnumBase;

/** All supported Basecamp API resources. **/
public class BasecampResource extends EnumBase
{
	/** @private - Singleton storage for id-name checks / conversations **/
	private static var _apiResourceType:BasecampResource;
	
	/** @private Constructor. **/
	public function BasecampResource()
	{
	}
	
	/** @private A singleton representation of class used for name and id 
	 * conversations. **/
	public static function get instance():BasecampResource
	{
		if(!_apiResourceType) _apiResourceType = new BasecampResource();
		
		return _apiResourceType;	
	}
	
	/** Represents an attachment. **/
	public static const ATTACHMENT:String	= instance.addValue("attachment");
	/** Represents a category. **/
	public static const CATEGORY:String 	= instance.addValue("category");
	/** Represents a comment. **/
	public static const COMMENT:String 		= instance.addValue("comment");
	/** Represents a company. **/
	public static const COMPANY:String 		= instance.addValue("company");
	/** Represents a message. **/
	public static const MESSAGE:String 		= instance.addValue("post");
	/** Represents a milestone. **/
	public static const MILESTONE:String 	= instance.addValue("milestone");
	/** Represents a person. **/
	public static const PERSON:String 		= instance.addValue("person");
	/** Represents a project. **/
	public static const PROJECT:String 		= instance.addValue("project");
	/** Represents a time-entry. **/
	public static const TIMEENTRY:String 	= instance.addValue("time-entry");
	/** Represents a todo-item. **/
	public static const TODOITEM:String 	= instance.addValue("todo-item");
	/** Represents a todo-list. **/
	public static const TODOLIST:String 	= instance.addValue("todo-list");
}
}
//////////////////////////////////////////////////////// gmarius@tyemill.com //